﻿using SportsPlatform.BaseModels;
using SportsPlatform.Enums;
using System;
using System.ComponentModel.DataAnnotations.Schema;

namespace SportsPlatform.Model.SportBusiness
{
    /// <summary>
    /// 审计日志模型
    /// </summary>
    [Table("T_B_SysLog")]
    public class SysLog : BaseModel
    {
        /// <summary>
        /// 用户编号
        /// </summary>
        public Guid UserId { get; set; }

        /// <summary>
        /// 用户姓名
        /// </summary>
        public String UserName { get; set; }

        /// <summary>
        /// 机构编号
        /// </summary>
        public Guid OrgId { get; set; }

        /// <summary>
        /// 机构名称
        /// </summary>
        public String OrgName { get; set; }

        /// <summary>
        /// 使用系统
        /// </summary>
        public String System { get; set; }

        /// <summary>
        /// 使用浏览器
        /// </summary>
        public String Browser { get; set; }

        /// <summary>
        /// IP地址
        /// </summary>
        public String IP { get; set; }

        /// <summary>
        /// 操作类型
        /// </summary>
        public OperationType OperationType { get; set; }

        /// <summary>
        /// 请求路径
        /// </summary>
        public String RequestMethod { get; set; }

        /// <summary>
        /// 请求路径
        /// </summary>
        public String RequestUrl { get; set; }

        /// <summary>
        /// 请求参数
        /// </summary>
        public String Params { get; set; }

        /// <summary>
        /// 返回值
        /// </summary>
        public String Result { get; set; }

        /// <summary>
        /// 记录旧值
        /// </summary>
        public String OldValue { get; set; }

        /// <summary>
        /// 记录新值
        /// </summary>
        public String NewValue { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }
    }
}
